package com.usefullc.blog.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 文章实体
 * @author: 星空
 * @date: 20220628
 */
@ApiModel("文章")
@TableName("blog_article")
@Data
public class Article extends BaseEntity {

//useful_auto_generate_section_start

    @ApiModelProperty(notes = "标题")
    @TableField(value="`title`")
    private String title;

    @ApiModelProperty(notes = "内容")
    @TableField(value="`content`")
    private String content;

    @ApiModelProperty(notes = "类目")
    @TableField(value="`categoryId`")
    private Long categoryId;

    @ApiModelProperty(notes = "作者")
    @TableField(value="`userId`")
    private Long userId;

    @ApiModelProperty(notes = "发布时间")
    @TableField(value="`gmtRelease`")
    private Date gmtRelease;

    @ApiModelProperty(notes = "审核时间")
    @TableField(value="`gmtAudit`")
    private Date gmtAudit;

    @ApiModelProperty(notes = "点赞数")
    @TableField(value="`likeNum`")
    private Integer likeNum;

    @ApiModelProperty(notes = "回复数")
    @TableField(value="`replyNum`")
    private Integer replyNum;

    @ApiModelProperty(notes = "阅读数")
    @TableField(value="`readNum`")
    private Integer readNum;

    @ApiModelProperty(notes = "分享数")
    @TableField(value="`shareNum`")
    private Integer shareNum;

    @ApiModelProperty(notes = "状态")
    @TableField(value="`status`")
    private Integer status;

    @ApiModelProperty(notes = "投稿")
    @TableField(value="`contribution`")
    private Integer contribution;

    @ApiModelProperty(notes = "投稿状态")
    @TableField(value="`contributionStatus`")
    private Integer contributionStatus;

    @ApiModelProperty(notes = "原创")
    @TableField(value="`original`")
    private Integer original;

    @ApiModelProperty(notes = "来源")
    @TableField(value="`source`")
    private Integer source;

    @ApiModelProperty(notes = "开启回复")
    @TableField(value="`reply`")
    private Integer reply;

    @ApiModelProperty(notes = "置顶")
    @TableField(value="`top`")
    private Integer top;

    @ApiModelProperty(notes = "推荐")
    @TableField(value="`recommend`")
    private Integer recommend;

    @ApiModelProperty(notes = "关键字")
    @TableField(value="`keywords`")
    private String keywords;

    @ApiModelProperty(notes = "描述")
    @TableField(value="`description`")
    private String description;

    @ApiModelProperty(notes = "图片")
    @TableField(value="`imgUrl`")
    private String imgUrl;

    @ApiModelProperty(notes = "文章地址")
    @TableField(value="`url`")
    private String url;


//useful_auto_generate_section_end


}
